package itsm.isperp.module.entity.db;

import itsm.isperp.framework.domain.IBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 实体字段
 * 
 * @author lizx
 * @date 2013-5-4
 */
@Entity
@Table(name = "db_entity_field")
public class DbEntityField implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	protected String id;
	@Column
	protected String name;
	@Column
	private String dbEntityId;
	@Column
	protected String fieldType;
	@Column
	protected String columnName;
	@Column
	protected boolean useForImport;
	@Column
	protected boolean slmCalculateField;
	@Column
	protected boolean dataChangeLog;
	@Column
	protected boolean notnull;
	@Column
	protected boolean uniqueKey;
	@Column
	protected boolean domainField;

	@Column
	protected int minLength;
	@Column
	protected int maxLength;
	@Column
	protected int orderNum;
	@Column
	protected String validateExp;
	@Column
	protected String validateDesc;
	@Column
	protected String sqlStr;
	
	@Column
	protected boolean useForChange;
	@Column
	protected String filedCategoryName;

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDbEntityId() {
		return dbEntityId;
	}

	public void setDbEntityId(String dbEntityId) {
		this.dbEntityId = dbEntityId;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public boolean isUseForImport() {
		return useForImport;
	}

	public void setUseForImport(boolean useForImport) {
		this.useForImport = useForImport;
	}

	public boolean isSlmCalculateField() {
		return slmCalculateField;
	}

	public void setSlmCalculateField(boolean slmCalculateField) {
		this.slmCalculateField = slmCalculateField;
	}

	public boolean isDataChangeLog() {
		return dataChangeLog;
	}

	public void setDataChangeLog(boolean dataChangeLog) {
		this.dataChangeLog = dataChangeLog;
	}

	public boolean isDomainField() {
		return domainField;
	}

	public void setDomainField(boolean domainField) {
		this.domainField = domainField;
	}

	public boolean isNotnull() {
		return notnull;
	}

	public void setNotnull(boolean notnull) {
		this.notnull = notnull;
	}

	public boolean isUniqueKey() {
		return uniqueKey;
	}

	public void setUniqueKey(boolean uniqueKey) {
		this.uniqueKey = uniqueKey;
	}

	public int getMinLength() {
		return minLength;
	}

	public void setMinLength(int minLength) {
		this.minLength = minLength;
	}

	public int getMaxLength() {
		return maxLength;
	}

	public void setMaxLength(int maxLength) {
		this.maxLength = maxLength;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public String getValidateExp() {
		return validateExp;
	}

	public void setValidateExp(String validateExp) {
		this.validateExp = validateExp;
	}

	public String getValidateDesc() {
		return validateDesc;
	}

	public void setValidateDesc(String validateDesc) {
		this.validateDesc = validateDesc;
	}

	public String getSqlStr() {
		return sqlStr;
	}

	public void setSqlStr(String sqlStr) {
		this.sqlStr = sqlStr;
	}

	public boolean isUseForChange() {
		return useForChange;
	}

	public void setUseForChange(boolean useForChange) {
		this.useForChange = useForChange;
	}

	public String getFiledCategoryName() {
		return filedCategoryName;
	}

	public void setFiledCategoryName(String filedCategoryName) {
		this.filedCategoryName = filedCategoryName;
	}

}
